#pragma once
#include <cocos2d.h>
#include "PlayerHealthBar.h"
#include "StateBar.h"
#include "Speedrun_Bar.h"

USING_NS_CC;

class MainLayer;

class InputLayer : public CCLayer
{
public:
	InputLayer(void);
	~InputLayer(void);

	virtual bool init();
	virtual void onEnter();
	virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	void upClick(CCObject* sender);
	void downClick(CCObject* sender);
	void callbackPauseClick( CCObject* sender );
	MainLayer* getMainLayer();

	CREATE_FUNC(InputLayer);

	CC_SYNTHESIZE_RETAIN(CCParticleSystemQuad*, _particle, Particle);

	/* UI */
	CC_SYNTHESIZE_RETAIN(PlayerHealthBar*, _playerHealthBar, PlayerHealthBar);
	CC_SYNTHESIZE_RETAIN(StateBar*, _stateBar, StateBar);
	CC_SYNTHESIZE_RETAIN(Speedrun_Bar*, _speedrunBar, SpeedrunBar);

	CC_SYNTHESIZE_RETAIN(CCLabelTTF*, _lblScore, LblScore);
	CC_SYNTHESIZE_RETAIN(CCLabelTTF*, _lblStar, LblStar);
	CC_SYNTHESIZE_RETAIN(CCLabelTTF*, _lblKm, LblKm);

	CC_SYNTHESIZE_RETAIN(CCMenuItemImage*, _butPause, PauseButton);


};

